package org.example.entity.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "t_user_roles")
public class UserRolesPO {

    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private Long userId;

    private Long roleId;

    private String createTime;
}
